dojo.provide("lotex.commond");

dojo.declare("lotex.commond.Once", null,
    function() {
        this.cache=new dojo.collections.ArrayList();
        this.idx = -1;
    },
{
    exec: function(key,obj,func){
        //alert(key + "  "+ func);
        if(this.cache.contains(key)) return null;
        this.cache.add(key);
        //dd(dojo.lang.hitch(obj,func));
        return dojo.lang.hitch(obj,func)();
    }
});